home *** CD-ROM | disk | FTP | other *** search
- echo off
- totals <\log | ptotals >\reports\log.rep
- if not errorlevel 0 goto errors
- del \logrep.dat
- edlin \logrep.dat <\logrep.ed
- if not errorlevel 0 goto errors
- del \collect.dat
- apply \logrep.dat "collect %%" /s
- if not errorlevel 0 goto errors
- apply \collect.dat "del \reports\%%" /s
- if not errorlevel 0 goto errors
- apply \collect.dat "\mailrep.bat %% %1 %2 %3" /s
- if not errorlevel 0 goto errors
- apply \collect.dat "totals %% <\log | ptotals >>\reports\%%.rep" /s
- if not errorlevel 0 goto errors
- apply \collect.dat "copy \reports\%% + \mailend.dat \reports\%%" /s
- cls
- echo .
- echo Your reports listed below await your perusal or mailing:-
- dir \reports /w
- goto end
- :errors
- echo .
- echo .
- echo Problems!! Please deal with them and then restart Bye.
- echo .
- :end